<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/8/12
 * Time: 下午2:27
 */
namespace PddWechat\Models\Pddorder\Service;

use Dai\Framework\Base\BaseSessionInfo;
use PddWechat\Models\Pddorder\Data\PddOrderData;
use PddWechat\Models\Pddorder\Param\OwnSpreadListParam;

/**
 * 获取用户直接邀请订单
 * Class OwnSpreadList
 * @package PddWechat\Models\Pddorder\Service
 */
class OwnSpreadList
{

    public function __construct()
    {
        $this->pddData = new PddOrderData();
    }

    public function execute($basePageInfo)
    {
        /** @var BaseSessionInfo $sessionData */
        $sessionData = $basePageInfo->sessionInfo;
        $uid = $sessionData->uid;
        /** @var OwnSpreadListParam $params*/
        $params = $basePageInfo->params;
        $res = $this->pddData->selectOwnSpreadList($uid,$params);
        return $res;
    }
}